package com.ugtss.busniess.controller;

import com.ugtss.busniess.domain.vo.DataAnalysisVo;
import com.ugtss.busniess.service.DataAnalysisService;
import com.ugtss.common.annotation.Anonymous;
import com.ugtss.common.core.domain.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;


@RestController
@RequestMapping("/dataAnalysis")
public class DataAnalysisController {

    @Autowired
    private DataAnalysisService dataAnalysisService;

    @GetMapping("/total")
    public R<DataAnalysisVo> total(){

        DataAnalysisVo vo = dataAnalysisService.total();
        return R.ok(vo);
    }


    @GetMapping("/salary")
    public R<List<DataAnalysisVo>> salary(){

        List<DataAnalysisVo> vo = dataAnalysisService.salary();
        return R.ok(vo);
    }

    @GetMapping("/industryDistribution")
    public R<List<DataAnalysisVo>> industryDistribution(){

        List<DataAnalysisVo> vo = dataAnalysisService.industryDistribution();
        return R.ok(vo);
    }




}
